<%@ page language="java"  pageEncoding="utf-8"%>
<%@page import="com.ejoysoft.common.exception.IdObjectException"%>
<%@page import="com.ejoysoft.wlanyz.business.Ac"%>
<%@page import="com.ejoysoft.wlanyz.business.Paper"%>
<%@page import="com.ejoysoft.common.exception.NoRightException"%>
<%@ include file="../include/jsp/head.jsp"%>
<%
if(!globa.userSession.hasRight("30005"))
      throw new NoRightException("用户不具备操作该功能模块的权限，请与系统管理员联系！");

	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	String paperId = ParamUtil.getString(request,"paperId2","");
	String acname = ParamUtil.getString(request,"acname2","");
	paperId=paperId.replace(".",""); 
	System.out.println("<script>alert("+paperId+"ddd"+acname+")</script>");
	if(paperId.equals(""))
		throw new IdObjectException("请求处理的信息id为空！或者已经不存在");
	Paper objPaper = new Paper(globa);
	
	Paper objPaper0 = objPaper.show(" where CadPic like'%"+paperId+"%' and acname ='"+acname+"' ");
	//String imageName = objPaper0.getCadPic();
	String acstrId =  objPaper0==null?"":objPaper0.getAcName();
	String paperName = objPaper0==null?"":objPaper0.getCadPic();
	globa.closeCon();
	
	Ac obj = new Ac(globa);
	Ac obj0 = obj.show(" where strId='"+acstrId+"'");
	String city = obj0==null?"": obj0.getStrCity();
	String country =  obj0==null?"":obj0.getStrCountry();
	String classOneAc = obj0==null?"": obj0.getClassOneAC();
	String classTwoAc =  obj0==null?"":obj0.getClassTwoAC();
	String filePath = "../acpapers/江苏省"+"/"+city+"/"+country+"/"+classOneAc+"/"+classTwoAc+"/"+paperName;
	filePath = filePath.replace('#','_') ;
	%>
<html>  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">  
<title>拓扑呈现——<%=application.getAttribute("APP_TITLE")%></title>
<meta http-equiv="imagetoolbar" content="no">  
<script type="text/javascript" src="../js/mapedimage.js" ></script>
<style type="text/css">  
<!--   
	td, a { font-size:12px; color:#000000 }  
	#Layer1 { position:absolute; z-index:100; top: 10px; }  
	#Layer2 { position:absolute; z-index:1; }  
	.s6 a:link{ line-height:25px;height:25px; color:#333333}
.s6 a:hover{ line-height:25px;height:25px; color:#333333}
-->  
</style> 
<script src="../include/js/chkFrm.js"></script> 
</head>  
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false"  
    ondragstart="return false" onselectstart="return false" onselect="document.selection.empty()"  
    oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()"  
    style="overflow-y: hidden; overflow-x: hidden;">  
    <div id="Layer1">   <form action="mapedimage.jsp" method="post" id=frm name=frm target="_blank"> 
        <%System.out.println(paperId+acname+"jjjjjjjjjjjjjjjj"); %>
      <input type="hidden" id="paperId2"name="paperId2"value="<%=paperId %>"/>
     <input type="hidden" id="acname2"name="acname2"value="<%=acname%>"/> 
        <table border="0" cellspacing="2" cellpadding="0" align="center">  
        <tr> 
               <td> 
                </td>  
                <td>  
                    <img src="../images/zoom_up.jpg" width="20" height="20" style="cursor: hand" onclick="clickMove('up')"  
                        title="向上">  
                </td>  
                <td>  
                </td>  
            </tr>   <tr>  
                <td>   
                    <img src="../images/zoom_left.jpg" width="20" height="20" style="cursor: hand" onclick="clickMove('left')"  
                        title="向左">  
                </td>  
                <td>   
                    <img src="../images/zoom_full.jpg" width="20" height="20" style="cursor: hand" onclick="window.document.getElementById('frm').submit();"  
                        title="全屏显示">   
                </td>  
                <td>  
                    <img src="../images/zoom_right.jpg" width="20" height="20" style="cursor: hand" onclick="clickMove('right')"  
                        title="向右">  
                </td>  
            </tr>  
            <tr>  
                <td>  
                </td>  
                <td>  
                    <img src="../images/zoom_down.jpg" width="20" height="20" style="cursor: hand" onclick="clickMove('down')"  
                        title="向下">  
                </td>  
                <td>  
                </td>  
            </tr>  
            <tr>  
                <td>  
                </td>  
                <td>  
                    <img src="../images/zoom_in.jpg" width="20" height="20" style="cursor: hand" onclick="bigit();"  
                        title="放大">  
                </td>  
                <td>  
                </td>  
            </tr>  
            <tr>  
                <td>  
                </td>  
                <td>  
                    <img src="../images/zoom_out.jpg" width="20" height="20" style="cursor: hand" onclick="smallit();"  
                        title="缩小">  
                </td>  
                <td>  
                </td>  
            </tr>  
             <tr>  
                <td>
                </td>  
                <td> <img src="../images/zoom.jpg" width="20" height="20" style="cursor: hand" onclick="realsize();"  
                        title="还原">  
                </td>  
                <td>  
                <br></td>  
            </tr>  
        </table>   </form> 
    </div>  
   <div id='hiddenPic' style='position: absolute; left: 0px; top: 0px; width: 0px; height: 0px;  
        z-index: 1; visibility: hidden;' align="center">  
        <img name='images2' src='<%=filePath %>' border='0'  />  
    </div> 
    <div id='block1' onmouseout='drag=0' onmouseover='dragObj=block1; drag=1;' style='z-index: 10;  
        height: 0; left: 0px; position: absolute; top: 0px; width: 0' class="dragAble" align="center" >  
        <img name='images1' src='<%=filePath %>' border='0' /> 
    </div>  
</body>  
</html>  
<%@ include file="../include/jsp/footer.jsp"%>